package com.example.client.controller;

import lombok.extern.slf4j.Slf4j;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

@RestController
@Slf4j
@RequestMapping("/test")
public class TestController {

    @RequestMapping("/test")
    public String test(HttpServletRequest httpServletRequest, HttpServletResponse httpServletResponse) {
        Object head = httpServletRequest.getHeader("head");
        Object param = httpServletRequest.getParameter("param");
        log.info("head={}",head);
        log.info("param={}",param);

        return null;
    }
}
